package com.bw.task.mvp.persenter;

import com.bw.library.mvp.presenter.BasePresenter;
import com.bw.task.bean.PopupWindioBean;
import com.bw.task.bean.Vodiobean;
import com.bw.task.mvp.contern.UserContentThree;

import org.jetbrains.annotations.NotNull;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

public class UserPersenterThree extends BasePresenter<UserContentThree.mView,UserContentThree.mModel> {


    public UserPersenterThree(UserContentThree.mView mView, UserContentThree.mModel mModel) {
        super(mView, mModel);
    }
    public void initgetv(String path){
        mModel.requestv(path,new Observer<Vodiobean>() {
            @Override
            public void onSubscribe(@NotNull Disposable d) {

            }

            @Override
            public void onNext(@NotNull Vodiobean vodiobean2) {
                mView.getV(vodiobean2);
            }

            @Override
            public void onError(@NotNull Throwable e) {

            }

            @Override
            public void onComplete() {

            }
        });
    }
    public void getgifit(){
        mModel.requestgifit(new Observer<PopupWindioBean>() {
            @Override
            public void onSubscribe(@NotNull Disposable d) {

            }

            @Override
            public void onNext(@NotNull PopupWindioBean popupWindioBean) {
                mView.getGifit(popupWindioBean);
            }

            @Override
            public void onError(@NotNull Throwable e) {

            }

            @Override
            public void onComplete() {

            }
        });
    }
}
